

import requests
from time import sleep

url1 = 'https://xyzb.yuanfudao.com/orion-bee-task/api/task-types/95075010649261056'
url2 = 'https://xyzb.yuanfudao.com/orion-bee-task/api/task-types/95075010649261057'
useragent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36'
# cookie1 = 'persistent=6y41H9l7gFigYY5oH1n8aUAl6jSIEp1yT782C59f7LV6LyY9YRRC3jphDGRT9tacDPrRXQkHobRat2TY8rqxzw==; YFD_U=1701675841710-59388; userid=715332880; __sub_user_infos__=/24T7Ovgtuud9LSYuz4IExs/N/lSmmbD+w3NsOLhh9vx6zKp5AysNRXY4JOkgpJn/AP3cynmxq1fH5MFk1ocnQ==; g_loc=vPeteFfrRL2jJ0VNIL3TWQ==; sid=5569943566979320627; sess=qTPUsuTWUX/IYlwCEvWG/8aJlQP56NXtp592k7/qY0k9aNwr31VFit4/6DlYKqVJlJmbRiOHAtwJVna0CwjDjOG/dDPltunTPPOQ+m1QK1E=; g_sess=qTPUsuTWUX/IYlwCEvWG/8aJlQP56NXtp592k7/qY0k9aNwr31VFit4/6DlYKqVJlJmbRiOHAtwJVna0CwjDjMmsNNTaE4Gs7K4u+QS4lEInCYb7I9wEmCb3/ZOO3W8K'
# cookie2 = 'YFD_U=1701675841710-59388; sid=5569943566979320627; userid=110631796; __sub_user_infos__=/24T7Ovgtuud9LSYuz4IEzJ9pHJcVzZdBjQwzpvOyKYwE/Bsk2664agm6Bg9Gz+vWbCTWChnPsWcM/fww1IaIQ==; g_loc=vPeteFfrRL2jJ0VNIL3TWQ==; persistent=nA9WH5lzVuEstNMi2vc2+ngj3kPRotWNyKByuzYT4JITndGj2eQtNLpr43kbWCo3kuHN2e3oTEUf0gvLXQ8WFg==; sess=l8F7Q3gxszWPW0Vbzuh0FF5i3YptjH3VPjJA2Rh4u3V49PAR07ZaZHMTaBtWAG0/ssYZGSnx1O6nxKbiNXqlpzdMJVUK+Gt8WihMpJc8KM0=; g_sess=l8F7Q3gxszWPW0Vbzuh0FF5i3YptjH3VPjJA2Rh4u3V49PAR07ZaZHMTaBtWAG0/ssYZGSnx1O6nxKbiNXqlpzKM4N4DOnf2uY/SUoCFcxYpad219/YLpkAu/XZ7xzad'
cookie1 = 'persistent=6y41H9l7gFigYY5oH1n8aUAl6jSIEp1yT782C59f7LV6LyY9YRRC3jphDGRT9tacDPrRXQkHobRat2TY8rqxzw==; YFD_U=1701675841710-59388; userid=715332880; __sub_user_infos__=/24T7Ovgtuud9LSYuz4IExs/N/lSmmbD+w3NsOLhh9vx6zKp5AysNRXY4JOkgpJn/AP3cynmxq1fH5MFk1ocnQ==; g_loc=vPeteFfrRL2jJ0VNIL3TWQ==; sid=5569943566979320627; sess=qTPUsuTWUX/IYlwCEvWG/8aJlQP56NXtp592k7/qY0k9aNwr31VFit4/6DlYKqVJlJmbRiOHAtwJVna0CwjDjOG/dDPltunTPPOQ+m1QK1E=; g_sess=qTPUsuTWUX/IYlwCEvWG/8aJlQP56NXtp592k7/qY0k9aNwr31VFit4/6DlYKqVJlJmbRiOHAtwJVna0CwjDjMmsNNTaE4Gs7K4u+QS4lEInCYb7I9wEmCb3/ZOO3W8K'

head ={'User-Agent':'','Cookie':cookie1}
code = 0      
while code != 1007:
    res = requests.get(url=url1,headers=head)
    # print(res.json())
    # print(type(res.json())) 
    code = res.json()['result']['code']
    print(code)
    sleep(10)
print('抢到啦！！！')
